package com.carleasoft.mps.cms.business.train.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.carleasoft.mps.cms.business.train.bean.entity.TrainConsumeItem;
import com.carleasoft.mps.cms.business.train.bean.po.TrainConsumeItemPageQueryPo;
import com.carleasoft.mps.cms.business.train.bean.vo.TrainConsumeItemVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 消耗合计 Mapper 接口
 * </p>
 *
 * @author fan
 * @since 2023-05-17
 */
@Mapper
public interface TrainConsumeItemMapper extends BaseMapper<TrainConsumeItem> {
    /**
     * 训练日常消耗-消耗-维护-分页
     */
    Page<TrainConsumeItemVo> consumeMaintainPageQuery(Page page, @Param("po") TrainConsumeItemPageQueryPo trainConsume);
    /**
     * 训练日常消耗-消耗-维护-批量编辑
     */
    boolean consumeMaintainBatchEdit(@Param("list") List<TrainConsumeItem> trainConsumeItemList);
    /**
     * 训练日常消耗-消耗-维护-根据药品名称批量编辑
     */
    boolean consumeMaintainBatchEditByName(@Param("list") List<TrainConsumeItem> trainConsumeItemList);
}
